package com.cy.pj.common.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class JsonResult  {

    private Integer state;
    private String message;
    private Object data;

    public JsonResult(String message){
        this.state=1;
        this.message=message;
    }

    public JsonResult(Object data){
        this.state=1;
        this.data=data;
    }
    public JsonResult(Throwable e){
        this.state=0;
        this.message=e.getMessage();
    }
}
